<div class="modal-header">
    <h4 class="modal-title">库存车辆详细信息</h4>
    <button type="button" class="close" data-dismiss="modal">
        <span aria-hidden="true">×</span>
        <span class="sr-only">关闭</span>
    </button>
</div>
<div class="modal-body">
    <p>
        <div class="about-infos d-flex flex-column">
            <div class="row">
                <div class="col-3">
                    <h4>车辆日期信息</h4>
                </div>
            </div>
            <div class="row">
                <div class="col">
                    <div class="text-primary mt-2 mb-2">入库时间：</div>
                    <div class="text-muted">
                        {$data.create_date|date='Y年m月d日'}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">出库时间：</div>
                    <div class="text-muted">
                        {$data.deliver_date|date='Y年m月d日'}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">库存天数</div>
                    <div class="text{lt name='$data.age' value='90'}-muted{/lt}" {egt name="$data.age" value="90"}style="color:red;"{/egt}>
                        {$data.age}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">是否超期</div>
                    <div class="text{lt name='$data.age' value='90'}-muted{/lt}" {egt name="$data.age" value="90"}style="color:red"{/egt}>
                        {egt name="$data.age" value="90"}是{/egt}
                        {lt name="$data.age" value="90"}否{/lt}
                    </div>
                </div>
            </div>
            <hr style="border:1 dashed #987cb9" width="80%" color="#987cb9" size=1>
            <div class="row">
                <div class="col-3">
                    <h4>车辆相关信息</h4>
                </div>
            </div>
            <div class="row">
                <div class="col">
                    <div class="text-primary mt-2 mb-2">车系</div>
                    <div class="text-muted">
                        {$data.vehicle}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">配置</div>
                    <div class="text-muted">
                        {$data.config}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">颜色</div>
                    <div class="text-muted">
                        {$data.color}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">内饰</div>
                    <div class="text-muted">
                        {$data.trim}
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col">
                    <div class="text-primary mt-2 mb-2">指导价</div>
                    <div class="text-muted">
                        {$data.price}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">车型编码</div>
                    <div class="text-muted">
                        {$data.model}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">选装</div>
                    <div class="text-muted">
                        {$data.option}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">备注</div>
                    <div class="text-muted">
                        {$data.note}
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col">
                    <div class="text-primary mt-2 mb-2">车架号</div>
                    <div class="text-muted">
                        {$data.vin}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">发动机号</div>
                    <div class="text-muted">
                        {$data.engine}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">是否配车</div>
                    <div class="text-muted">
                        {if $data.mated == 1}是{else/}否{/if}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">是否交付</div>
                    <div class="text-muted">
                        {if $data.deliver == 1}是{else/}否{/if}
                    </div>
                </div>
            </div>
            <hr style="border:1 dashed #987cb9" width="80%" color="#987cb9" size=1>
            {if $data.mated == 1 OR $data.deliver == 1}
            <div class="row">
                <div class="col-3">
                    <h4>客户相关信息</h4>
                </div>
            </div>
            <div class="row">
                <div class="col">
                    <div class="text-primary mt-2 mb-2">客户名称</div>
                    <div class="text-muted">
                        {$data.name}
                    </div>
                </div>
                <div class="col">
                    <div class="text-primary mt-2 mb-2">客户电话</div>
                    <div class="text-muted">
                        {$data.phone}
                    </div>
                </div>
                <div class="col">
                </div>
                <div class="col">
                </div>
            </div>
            <hr style="border:1 dashed #987cb9" width="80%" color="#987cb9" size=1>
            {/if}
            <div class="row">
                <div class="col-3">
                    <h4>车辆存放及监管信息</h4>
                </div>
            </div>
            <div class="row">
                <div class="col-xl-3">
                    <div class="text-primary mt-2 mb-2">存放地点</div>
                    <div class="text-muted">
                        {$data.location}
                    </div>
                </div>
                <div class="col-xl-3">
                    <div class="text-primary mt-2 mb-2">库位</div>
                    <div class="text-muted">
                        {$data.storehouse}
                    </div>
                </div>
                <div class="col-xl-3">
                    <div class="text-primary mt-2 mb-2">监管方</div>
                    <div class="text-muted">
                        {$data.regulator}
                    </div>
                </div>
                {notempty name="$data.certificate"}
                 <div class="col-xl-3">
                    <div class="text-primary mt-2 mb-2">合格证</div>
                    <div class="text-muted">
                        <a type="button" href="__STORAGE__/{$data.certificate_url}" download="__STORAGE__/{$data.certificate_url}">下载</a>
                    </div>
                </div>
                {/notempty}
            </div>
        </div>
     </p>
</div>
<div class="modal-footer">
    <button type="button" class="btn btn-shadow" data-dismiss="modal">关闭</button>
</div>